package com.fms.mapper;

import com.baomidou.mybatisplus.annotation.InterceptorIgnore;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.fms.entity.AttendanceTask;
import org.apache.ibatis.annotations.Select;

public interface AttendanceTaskMapper extends BaseMapper<AttendanceTask> {

    /**
     * 根据id查询所有记录，包括已删除的记录
     * @param id taskId
     * @return AttendanceTask
     */
    @InterceptorIgnore(tenantLine = "1")
    @Select("select id, in_deadline, out_deadline, start_time, week_day as weekDaysString, longitude, latitude, creator, create_date, updater, update_date, status, is_deleted from attendance_task where id = #{id}")
    AttendanceTask getIgnoreById(Long id);
}
